package com.hacker.highccy.dao;

import com.hacker.highccy.entity.SuccessKilled;
import org.apache.ibatis.annotations.Param;

/**
 * @Author:这个程序员有纹身
 * @Date: Created in 17:41 2017\12\26 0026
 */
public interface SuccessKilledDao {

    /**
     * 插入购买明细，可过滤重复
     * @param seckillId
     * @param userPhone
     * @return 插入的行数
     */
    int insertSuccessKilled(@Param("seckillId") long seckillId,@Param("userPhone") long userPhone);

    /**
     * 根据Id查询successKilled并携带秒杀产品对象实体
     * @param seckillId
     * @return
     */
    SuccessKilled queryByIdWithSeckill(@Param("seckillId")long seckillId,@Param("userPhone")long userPhone);

}
